home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Scribefire-1.4.2 / scribefire-1.4.2-fx+fl.xpi / chrome / content / imageUpload.xul < prev    next >
Encoding:
Extensible Markup Language  |  2007-02-19  |  11.9 KB  |  169 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://performancing/skin/overlay.css" type="text/css"?>
  4. <!DOCTYPE dialog [ 
  5.     <!ENTITY % performancingDTD SYSTEM "chrome://performancing/locale/overlay.dtd"> 
  6.     %performancingDTD; 
  7.     <!ENTITY % performancingFallbackDTD SYSTEM "chrome://performancing/content/locale-default/overlay.dtd"> 
  8.     %performancingFallbackDTD; 
  9. ]>
  10. <dialog id="performancing-settings-window" 
  11.         title="&performancing.imageupload.title;"
  12.         windowtype="Performancing:ImageUpload"
  13.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  14.         buttons="accept,cancel"
  15.         onload="sizeToContent(); gUploadDialogService.onLoad();"
  16.         ondialogaccept="return gUploadDialogService.onDialogAccept();"
  17.         buttonlabelaccept="&performancing.imageupload.uploadandinsert;"
  18.         ondialogextra1=";"
  19.         buttonlabelextra1="&performancing.imageupload.apply;"
  20.         >
  21.         <script type="application/x-javascript" src="chrome://performancing/content/upload2.js"/>
  22.         <script type="application/x-javascript" src="chrome://performancing/content/performancingUtil.js"/>
  23.         <script type="application/x-javascript" src="chrome://performancing/content/editor.js"/>
  24.         <script type="application/x-javascript" src="chrome://performancing/content/xmlrpc.js"/>
  25. <script type="application/x-javascript">
  26. <![CDATA[//
  27. ////////////
  28. //Make sure we load settings
  29. //window.addEventListener('load', gUploadDialogService.loadFtpSettings, false); 
  30. ////////////
  31. ]]></script>
  32.  
  33. <!-- Localization Strings | http://www.xulplanet.com/references/elemref/ref_stringbundle.html -->
  34. <stringbundle id="performancingstrings" src="chrome://performancing/locale/overlay.properties"/>
  35. <stringbundle id="performancingstrings-fallback" src="chrome://performancing/content/locale-default/overlay.properties"/>
  36.  
  37.     <hbox>
  38.         <vbox>
  39.             <tabbox id="tabbox" flex="1" context="">
  40.                 <tabs orient="horizontal">
  41.                     <tab id="performancing-tab-flights" label="&performancing.imageupload.tabs.general;" accesskey="&performancing.imageupload.tabs.general.key;" collapsed="false"/>
  42.                     <tab id="performancing-tab-flights" label="&performancing.imageupload.tabs.settings;" accesskey="&performancing.imageupload.tabs.settings.key;" collapsed="false"/>
  43.                 </tabs>
  44.                 <spacer width="4"/>
  45.                 <tabpanels id="tabpanels" class="performancing_tabpanels" flex="1">        
  46.  
  47.                 <!-- / General Panel -->
  48.                     <tabpanel id="performancing-upload-panel-general" orient="vertical" flex="1" context="">
  49.                             <vbox flex="1" align="center">
  50.                                 <label value="&performancing.imageupload.chooseimagemsg;" style="font-weight: bold;" />
  51.                                   <radiogroup id="upload-details" orient="horizontal">
  52.                                       <radio id="url"   label="&performancing.imageupload.fromurl;" selected="true"   accesskey="&performancing.imageupload.fromurl.key;" value="ftp" oncommand="gUploadDialogService.onRadioClick(this)"/>
  53.                                       <radio id="file"  label="&performancing.imageupload.imageupload;"  accesskey="&performancing.imageupload.imageupload.key;" value="http" oncommand="gUploadDialogService.onRadioClick(this)"/>
  54.                                   </radiogroup>
  55.                             </vbox>
  56.                             <spring flex="1"/>
  57.                             <separator class="thick pff-upload-bar"/>
  58.                             <spring flex="1"/>
  59.                             <vbox>
  60.                              <groupbox id="upload-url-box" orient="vertical" flex="1" disabled="true" class="white">
  61.                               <caption label="&performancing.imageupload.imageurl;"/>
  62.                                  <label id="upload-url-generated" value="&performancing.imageupload.generatedftp;" style="color: blue;" hidden="true"/>
  63.                                  <hbox flex="1">
  64.                                     <label id="upload-url-label" value="&performancing.imageupload.url;" accesskey="&performancing.imageupload.url.key;" control="upload-url" />
  65.                                     <textbox id="upload-url" flex="1"/>
  66.                                  </hbox>
  67.                                  <hbox align="right">
  68.                                     <button id="upload-url-copy-button" label="&performancing.imageupload.copyurltoclp;" oncommand="gUploadDialogService.copyURLToClipboard()" />
  69.                                  </hbox>
  70.                                  <spacer style="height:10px"/>
  71.                               </groupbox>
  72.  
  73.                              <groupbox id="upload-ftp-box" orient="vertical" flex="1" disabled="true">
  74.                                 <caption label="&performancing.imageupload.imageupload;"/>
  75.                                 <deck id="upload-ftp-deck" selectedIndex="0" flex="1" >
  76.                                     <vbox flex="1">
  77.                                         <hbox>
  78.                                             <label id="upload-ftp-uri-label" value="&performancing.imageupload.file;" accesskey="&performancing.imageupload.file.key;" control="upload-url" disabled="true"/>
  79.                                             <textbox id="upload-ftp-uri" flex="1" disabled="true" readonly="true" class="white"/>
  80.                                             <button id="upload-ftp-uri-button" label="&performancing.imageupload.browse;" disabled="true" oncommand="gUploadDialogService.onFilePick(false);" />
  81.                                         </hbox>
  82.                                         <hbox>
  83.                                             <button id="upload-ftp-upload-button" label="&performancing.imageupload.uploadviaftp;" disabled="true" oncommand="gUploadDialogService.onUploadStarted();" />
  84.                                             <button id="upload-blogapi-upload-button" label="&performancing.imageupload.uploadviaapi;" disabled="false" oncommand="gUploadDialogService.onBlogApiUploadStarted();" />
  85.                                         </hbox>
  86.                                         <hbox>
  87.                                             <label id="upload-ftp-upload-status-label" value="&performancing.imageupload.status;" disabled="true"/>
  88.                                             <label id="upload-ftp-upload-status" value="" style="color: blue;"/>
  89.                                         </hbox>
  90.                                     </vbox>
  91.                                     <vbox flex="1" align="center">
  92.                                         <stack pack="center" align="center">
  93.                                             <vbox>
  94.                                                 <image id="performancing-post-progress" tooltiptext="&performancing.imageupload.uploading;" height="19px"/>
  95.                                             </vbox>
  96.                                             <vbox align="center" width="150px">
  97.                                                 <label id="upload-upload-progress-text" value="&performancing.imageupload.uploading;" style="color: #000; font-weight: bold; font-size: small;" crop="end"/>
  98.                                                 <spring flex="1"/>
  99.                                             </vbox>
  100.                                         </stack>
  101.                                         <hbox>
  102.                                             <button label="&performancing.imageupload.cancelupload;" oncommand="gUploadService.cancelUpload()"/>
  103.                                         </hbox>
  104.                                     </vbox>
  105.                                 </deck>
  106.                              </groupbox>
  107.                              </vbox>
  108.                              <spring flex="1"/>
  109.                     </tabpanel>
  110.                     
  111.                     <!-- / FTP Settings Panel -->
  112.                     <tabpanel id="performancing-settings-panel-ftpsettings" orient="vertical" flex="1" context="">
  113.                             <groupbox orient="vertical">
  114.                               <caption label="&performancing.imageupload.ftpsettings;"/>
  115.                               <radiogroup id="protocol" preference="pref_protocol" orient="horizontal">
  116.                                   <radio id="ftp"   label="&performancing.imageupload.ftp;"   accesskey="&performancing.imageupload.ftp.key;" value="ftp" selected="true"/>
  117.                                   <radio id="http"  label="&performancing.imageupload.http;"  accesskey="&performancing.imageupload.http.key;" value="http"/>
  118.                                   <radio id="https" label="&performancing.imageupload.https;" accesskey="&performancing.imageupload.https.key;" value="https"/>
  119.                               </radiogroup>
  120.                           
  121.                              <grid flex="1" hidden="false">
  122.                                 <columns>
  123.                                   <column/>
  124.                                   <column flex="1"/>
  125.                                 </columns>
  126.                                 <rows>
  127.                                   <row align="center">
  128.                                     <label value="&performancing.imageupload.host;" accesskey="&performancing.imageupload.host.key;" control="host"/>
  129.                                     <vbox>
  130.                                            <textbox id="host" />
  131.                                            <label value="&performancing.imageupload.hostexample;" style="font-style: italic; " />
  132.                                     </vbox>
  133.                                   </row>
  134.                                   <row align="center">
  135.                                     <label value="&performancing.imageupload.username;" accesskey="&performancing.imageupload.username.key;" control="username"/>
  136.                                     <textbox id="username"/>
  137.                                   </row>
  138.                                   <row align="center">
  139.                                     <label value="&performancing.imageupload.password;" accesskey="&performancing.imageupload.password.key;" control="password"/>
  140.                                     <textbox id="password" type="password" />
  141.                                   </row>
  142.                                   <row align="center">
  143.                                     <label value="&performancing.imageupload.serverpath;" accesskey="&performancing.imageupload.serverpath.key;" control="path"/>
  144.                                      <vbox>
  145.                                             <textbox id="path"/>
  146.                                            <label value="&performancing.imageupload.serverpathexample;" style="font-style: italic; " />
  147.                                     </vbox>
  148.                                   </row>
  149.                                   <row align="center">
  150.                                     <label value="&performancing.imageupload.urltopath;" accesskey="&performancing.imageupload.urltopath.key;" control="url-to-path"/>
  151.                                      <vbox>
  152.                                            <textbox id="url-to-path" value="http://"/>
  153.                                            <label value="&performancing.imageupload.urltopathexample;" style="font-style: italic; " />
  154.                                     </vbox>
  155.                                   </row>
  156.                                 </rows>
  157.                               </grid>
  158.                               <separator/>
  159.                               <button label="&performancing.imageupload.savesettings;" oncommand="gUploadDialogService.saveFtpSettings();" />
  160.                         </groupbox>
  161.                     </tabpanel>
  162.                     
  163.                 </tabpanels>
  164.             </tabbox>
  165.  
  166.         </vbox>
  167.     </hbox>
  168. </dialog>
  169.